/* 全局设置 */
/* 全部元素的初始样式 */
*,
:after,
:before {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 自定义属性 */
:root {
    --main-bg-color: rgb(250, 220, 100);
    --main-font-color: rgb(25, 50, 150);
    --main-box-shadow-color: rgba(0, 0, 0, .1);
    --main-bg-color-gray: rgb(240, 240, 240);
    --main-color-border: rgb(20, 20, 20);
}

body {
    font-size: 18px;
}


/* 文字过长显示省略号 */

.huily-auto-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    /*! autoprefixer: ignore next */
    -webkit-box-orient: vertical;
    white-space: normal;
    word-break: break-all;
}

/* 居中布局的dialog */
.huily-center-dialog .el-dialog {
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* flex 布局容器 */
.huily-flex-container-column {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.huily-flex-container-row {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 自己定义的样式 */

.inline-block {
    display: inline-block;
}

.box-img {
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid var(--main-bg-color);
}

.box-img>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 原生样式修改 */

ul {
    list-style-type: none;
    padding: 0;
}

button:focus {
    outline: 0;
}

a {
    color: #2d8cf0;
    background: 0 0;
    text-decoration: none;
    outline: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

/* 以下为element组件全局样式 */

.huily-el-menu-item-center {
    padding-left: 30% !important;
}

/* 饿了么样式统一修改 */
.el-tooltip__popper.is-light {
    background-color: var(--main-bg-color);
    color: var(--main-font-color);
}

.el-menu {
    border: none;
}

.el-switch__label span {
    font-size: 20px;
}

.el-collapse-item__content {
    margin: 0px;
    padding: 0px;
}

.el-table__body .current-row td {
    background-color: var(--main-bg-color) !important;
}